﻿using System;
using Inovout.Descriptor;

namespace Inovout.Security
{
    public partial class EnumOperation
    {
        public Enum OperationEnum
        {
            get
            {
                EnumDescriptor enumDescriptor = EnumDescriptor.Create(OperationEnumType);
                return enumDescriptor[OperationEnumValue].Value;
            }
            set
            {
                OperationEnumType = value.GetType();
                OperationEnumValue = int.Parse(value.ToString("D"));
            }
        }
    }
}
